package com.clp.inflxudb.anno;

import com.influxdb.client.domain.WritePrecision;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(value = RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Write {
    String bucket();

    /**
     * 默认精度为 S
     * @return
     */
    WritePrecision wp() default WritePrecision.S;
}
